package com.csust.automaticteach.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 练习提交表
 * @TableName t_exercises_submit
 */
@TableName(value ="t_exercises_submit")
@Data
public class ExercisesSubmit implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 用户答案
     */
    @TableField(value = "answer")
    private String answer;

    /**
     * 判题状态（0 - 待判题 1 - 失败、2 - 正确、3 - 错误、）
     */
    @TableField(value = "status")
    private Integer status;
    /**
     * 提高建议
     */
    @TableField(value = "improvement")
    private String improvement;
    /**
     * 题目 id
     */
    @TableField(value = "exercisesId")
    private Long exercisesId;

    /**
     * 创建用户 id
     */
    @TableField(value = "userId")
    private Long userId;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "updateTime")
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableField(value = "isDelete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}